package com.sunday.study.aspectJ.execution;

import com.sunday.study.aspectJ.MyAnno;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Slf4j
@Component
public class OrderHandler<T> {

    public void pay(BigDecimal money){
        log.info("支付 : {}", money);
    }

    @MyAnno
    public void refund(BigDecimal money, BigDecimal added){
        log.info("退款 : {}, {}", money, added);
    }

    public void sampleGenericMethod(T param){
        log.info("{}",param);
    }

    public void job(){
        log.info("订单 job");
    }

}
